package com.bstek.dao;

import com.bstek.model.domain.MisDepartment;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface MisDepartmentDao {

    List<MisDepartment> getDepts();

    List<MisDepartment> getDeptByParentId(int parentId);

    int count();

    int saveDepartment(MisDepartment misDepartment);

    int updateDepartment(MisDepartment misDepartment);

    int delDepartmentById(int id);
}
